package com.itheima_01.day08;

import java.util.Random;

public class KuoZhanZuoYe_01 {
    public static void main(String[] args) {
        String s = shengChenYzm();
        System.out.println(s);

    }

    public static String shengChenYzm() {
        Random r = new Random();
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 5; i++) {
            int sjcode = r.nextInt(122 - 97) + 97;
            sb.append((char) sjcode);
        }
        return sb.toString();
    }
}
